{template 'web/common/common'}
{template 'web/home/navbar'}
<link rel="stylesheet" type="text/css" href="../addons/kundian_farm/resource/css/style.css" />
<link rel="stylesheet" type="text/css" href="../addons/{php echo $_GPC['m']}/resource/swal/dist/sweetalert2.min.css" />
<style>
    h4{color: #fc8535}
</style>
<div class="panel panel-success">
    <div class="panel-heading">
        <h3 class="panel-title">
            首页底部设置
        </h3>
    </div>
    <div class="panel-body">

        <form id="sign-form" class="form-horizontal" role="form" method="post" action="{url 'site/entry/home',array('m'=>'kundian_farm','op'=>'home_btm_now_save','version_id'=>$_GPC['version_id'])}" name="submit" style="padding: 20px 0;">
            <div class="col-md-4">
                <h4>版块一</h4>
                <div class="form-group">
                    <label class="col-sm-2 control-label">标题</label>
                    <div class="col-sm-8">
                        <input type="text" class="form-control"  name="title1"  value="{$list['plate_one']['title']}">
                        <input type="hidden" name="id" value="{$list['id']}">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">图片(180*225)</label>
                    <div class="col-sm-8">
                        {php echo tpl_form_field_image('icon1',$list['plate_one']['icon']);}
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">描述</label>
                    <div class="col-sm-8">
                        <input type="text" class="form-control"  name="remark1" value="{$list['plate_one']['remark']}">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">链接板块</label>
                    <div class="col-sm-8">
                        <select name="jump_url1" id="jump_url1" class="form-control">
                            <option value="0">请选择</option>
                            <option value="user/land/selectionLands/index" <?php if($list['plate_one']['jump_url']=='user/land/selectionLands/index'){echo 'selected';}?> >农田选租</option>
                            <option value="shop/Adopt/index" <?php if($list['plate_one']['jump_url']=='shop/Adopt/index'){echo 'selected';}?> >家畜领养</option>
                            <option value="shop/integral/index/index" <?php if($list['plate_one']['jump_url']=='shop/integral/index/index'){echo 'selected';}?> >农场签到</option>
                            <option value="HomePage/live/index" <?php if($list['plate_one']['jump_url']=='HomePage/live/index'){echo 'selected';}?> >农场直播</option>
                            <option value="shop/Group/index/index" <?php if($list['plate_one']['jump_url']=='shop/Group/index/index'){echo 'selected';}?> >团购商城</option>
                            <option value="shop/integral/exchange/index" <?php if($list['plate_one']['jump_url']=='shop/integral/exchange/index'){echo 'selected';}?> >积分商城</option>
                            <option value="user/Animal/index" <?php if($list['plate_one']['jump_url']=='user/Animal/index'){echo 'selected';}?> >我的家畜</option>
                            <option value="user/land/personLand/index" <?php if($list['plate_one']['jump_url']=='user/land/personLand/index'){echo 'selected';}?> >我的种植</option>
                            <option value="HomePage/about/index" <?php if($list['plate_one']['jump_url']=='HomePage/about/index'){echo 'selected';}?> >农场简介</option>
                            <option value="user/coupon/index/index" <?php if($list['plate_one']['jump_url']=='user/coupon/index/index'){echo 'selected';} ?> >领券中心 </option>
                            <option value="user/addCard/index" <?php if($list['plate_one']['jump_url']=='user/addCard/index'){echo 'selected';} ?> >兑换卡 </option>
                            <option value="shop/index/index" <?php if($list['plate_one']['jump_url']=='shop/index/index'){echo 'selected';} ?> >普通商城 </option>
                            <option value="article/index/index" <?php if($list['plate_one']['jump_url']=='article/index/index'){echo 'selected';} ?> >资讯列表 </option>
                        </select>
                    </div>
                </div>
            </div>
            <div class="col-md-4">
                <h4>版块二</h4>
                <div class="form-group">
                    <label for="title2" class="col-sm-2 control-label">标题</label>
                    <div class="col-sm-8">
                        <input type="text" class="form-control"  name="title2" id="title2" value="{$list['plate_two']['title']}">
                        <input type="hidden" name="id" value="{$list['id']}">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">图片(180*110)</label>
                    <div class="col-sm-8">
                        {php echo tpl_form_field_image('icon2',$list['plate_two']['icon']);}
                    </div>
                </div>

                <div class="form-group">
                    <label class="col-sm-2 control-label">描述</label>
                    <div class="col-sm-8">
                        <input type="text" class="form-control"  name="remark2" value="{$list['plate_two']['remark']}">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">链接板块</label>
                    <div class="col-sm-8">
                        <select name="jump_url2" id="jump_url2" class="form-control">
                            <option value="0">请选择</option>
                            <option value="user/land/selectionLands/index" <?php if($list['plate_two']['jump_url']=='user/land/selectionLands/index'){echo 'selected';}?> >农田选租</option>
                            <option value="shop/Adopt/index" <?php if($list['plate_two']['jump_url']=='shop/Adopt/index'){echo 'selected';}?> >家畜领养</option>
                            <option value="shop/integral/index/index" <?php if($list['plate_two']['jump_url']=='shop/integral/index/index'){echo 'selected';}?> >农场签到</option>
                            <option value="HomePage/live/index" <?php if($list['plate_two']['jump_url']=='HomePage/live/index'){echo 'selected';}?> >农场直播</option>
                            <option value="shop/Group/index/index" <?php if($list['plate_two']['jump_url']=='shop/Group/index/index'){echo 'selected';}?> >团购商城</option>
                            <option value="shop/integral/exchange/index" <?php if($list['plate_two']['jump_url']=='shop/integral/exchange/index'){echo 'selected';}?> >积分商城</option>
                            <option value="user/Animal/index" <?php if($list['plate_two']['jump_url']=='user/Animal/index'){echo 'selected';}?> >我的家畜</option>
                            <option value="user/land/personLand/index" <?php if($list['plate_two']['jump_url']=='user/land/personLand/index'){echo 'selected';}?> >我的种植</option>
                            <option value="HomePage/about/index" <?php if($list['plate_two']['jump_url']=='HomePage/about/index'){echo 'selected';}?> >农场简介</option>
                            <option value="user/coupon/index/index" <?php if($list['plate_two']['jump_url']=='user/coupon/index/index'){echo 'selected';} ?> >领券中心 </option>
                            <option value="user/addCard/index" <?php if($list['plate_two']['jump_url']=='user/addCard/index'){echo 'selected';} ?> >兑换卡 </option>
                            <option value="shop/index/index" <?php if($list['plate_two']['jump_url']=='shop/index/index'){echo 'selected';} ?> >普通商城 </option>
                            <option value="article/index/index" <?php if($list['plate_two']['jump_url']=='article/index/index'){echo 'selected';} ?> >资讯列表 </option>
                        </select>
                    </div>
                </div>
            </div>
            <div class="col-md-4">
                <h4>版块三</h4>
                <div class="form-group">
                    <label for="title3" class="col-sm-2 control-label">标题</label>
                    <div class="col-sm-8">
                        <input type="text" class="form-control"  name="title3" id="title3" value="{$list['plate_three']['title']}">
                        <input type="hidden" name="id" value="{$list['id']}">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">图片(180*110)</label>
                    <div class="col-sm-8">
                        {php echo tpl_form_field_image('icon3',$list['plate_three']['icon']);}
                    </div>
                </div>

                <div class="form-group">
                    <label class="col-sm-2 control-label">描述</label>
                    <div class="col-sm-8">
                        <input type="text" class="form-control"  name="remark3" value="{$list['plate_three']['remark']}">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">链接板块</label>
                    <div class="col-sm-8">
                        <select name="jump_url3" id="jump_url3" class="form-control">
                            <option value="0">请选择</option>
                            <option value="user/land/selectionLands/index" <?php if($list['plate_three']['jump_url']=='user/land/selectionLands/index'){echo 'selected';}?> >农田选租</option>
                            <option value="shop/Adopt/index" <?php if($list['plate_three']['jump_url']=='shop/Adopt/index'){echo 'selected';}?> >家畜领养</option>
                            <option value="shop/integral/index/index" <?php if($list['plate_three']['jump_url']=='shop/integral/index/index'){echo 'selected';}?> >农场签到</option>
                            <option value="HomePage/live/index" <?php if($list['plate_three']['jump_url']=='HomePage/live/index'){echo 'selected';}?> >农场直播</option>
                            <option value="shop/Group/index/index" <?php if($list['plate_three']['jump_url']=='shop/Group/index/index'){echo 'selected';}?> >团购商城</option>
                            <option value="shop/integral/exchange/index" <?php if($list['plate_three']['jump_url']=='shop/integral/exchange/index'){echo 'selected';}?> >积分商城</option>
                            <option value="user/Animal/index" <?php if($list['plate_three']['jump_url']=='user/Animal/index'){echo 'selected';}?> >我的家畜</option>
                            <option value="user/land/personLand/index" <?php if($list['plate_three']['jump_url']=='user/land/personLand/index'){echo 'selected';}?> >我的种植</option>
                            <option value="HomePage/about/index" <?php if($list['plate_three']['jump_url']=='HomePage/about/index'){echo 'selected';}?> >农场简介</option>
                            <option value="user/coupon/index/index" <?php if($list['plate_three']['jump_url']=='user/coupon/index/index'){echo 'selected';} ?> >领券中心 </option>
                            <option value="user/addCard/index" <?php if($list['plate_three']['jump_url']=='user/addCard/index'){echo 'selected';} ?> >兑换卡 </option>
                            <option value="shop/index/index" <?php if($list['plate_three']['jump_url']=='shop/index/index'){echo 'selected';} ?> >普通商城 </option>
                            <option value="article/index/index" <?php if($list['plate_three']['jump_url']=='article/index/index'){echo 'selected';} ?> >资讯列表 </option>
                        </select>
                    </div>
                </div>
            </div>

            <div class="form-group">
                <div class="col-sm-offset-2 col-sm-10">
                    <input style="width: 20%" type="submit" name="submit" class="btn btn-primary">
                </div>
            </div>
        </form>
    </div>
</div>

<script>
    require(["../addons/{php echo $_GPC['m']}/resource/swal/dist/sweetalert2.min.js"],function(){

    })
</script>